Fix pos-visible-in-window-p under bidi redisplay.
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:46:21 +0000 (13:46 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Jul 2011 10:46:21 +0000 (13:46 +0300)
commit9ec21915f6c1b75d74a79566f70420b6390c8620
treeb532108031a79b90f92e2a52be6bfcf80c7ab57c
parent15b48d86b1a16b8e25435ef6f7f33aba03ed6509
parent4fbdbb92126724b66c92fc6ae4f6ff2dd7ad19c5
Fix pos-visible-in-window-p under bidi redisplay.

 src/xdisp.c (move_it_in_display_line_to): Record the best matching
 position for TO_CHARPOS while scanning the line, and restore it on
 exit if none of the characters scanned was an exact match.  Fixes
 vertical-motion and pos-visible-in-window-p under bidi redisplay
 when exact match is impossible due to invisible text, and the
 lines are truncated.
src/ChangeLog
src/xdisp.c